<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
    <style type="text/css">
     .selectkpiClass{
	       height:22px;
	       line-height:22px;
		   width:90px;
		   border:#cbcbcb solid 1px;
		   margin-top:3px;
		   margin-right:5px;
		   margin-bottom:2px;
		   margin-left:2px;
     }
     input[type="text"]{
        height:20px;
        line-height:20px;
	    width:50%;
	    border:#cbcbcb solid 1px;
	    vertical-align: middle;
	    margin-top:3px;
     }
     .tableTd{
       margin-top:3px;
       text-align:right;
       width:100px;
       height:23px;
       vertical-align: middle;
       font-size:13px;
     }
    </style>
    <!-- 自定义javascript函数 -->
    <script type="text/javascript">
     //申请全局变量
     var kpiDialog=false;//标识是否启动弹窗口dialog
     var kpiList=new Array();
     var kpiDialogList=new Array();
     $(document).ready(function(){
         //隐藏指标订阅详细设计弹出框
         $("#dqm_kpiSubscrible_dialogId").hide();
         
         var pars="resourceId="+$("#dqm_kpiSubscrible_subscribleId").val();
         $('#dqm_kpiSubscrible_treeId').tree({  
        	url: '${pageContext.request.contextPath}/basemgr/kpiSubscribleAction!getTreeData.action?'+pars, 
        	checkbox: true,
            lines : true,
 		    parentField :'pid',
 		    required: false,
 		    onDblClick:function(e,node){
               //过滤角色双击事件
                var rode=e.id.split("@@");
                if(rode[1]!="parent"){
                   kpiDialog=true;
                   $("#dqm_kpiSubscrible_txtsubscribeId").val(e.id);
                   $("#dqm_kpiSubscrible_txtsubscribeName").val(e.text);
                   showDialogData(e.id);//配置相应的数据
                }
             }
 		}); 
         //初始化默认时间
         $("#dqm_kpiSubscrible_selectPeriodType").val("3");
         $("#dqm_kpiSubscrible_datetime_day").my97({
	   	         dateFmt:'yyyyMMdd',
	   	         width:120,
		   	     startDate:[{
		   			 doubleCalendar:false,
		   			 isShowWeek:false,
		   			 isShowClear:false,
		   			 readOnly:true
		   	     }]
	        });
         $("#dqm_kpiSubscrible_datetime_day").val(getDateStr(0));
     });
     //删除订阅指标
     function deleteKpiSubscrible(){
          //获取指标编码
          //获取树形中所有checkbox选中的值
	      var node=$('#dqm_kpiSubscrible_treeId').tree('getChecked');
	      var pars="";
	      if(node.length>0){
	         var str="";
		     for(var idx=0;idx<node.length;idx++){
		          var removeRode=node[idx].id.split("@@");
		          if(removeRode[1]!="parent"){
		             str+=node[idx].id+"@";
		          }
		     }
		  }
		  pars+="resourceId="+$("#dqm_kpiSubscrible_subscribleId").val()+"&userId="+str;
		  //执行删除订阅指标操作
          $.ajax({
			 url : '${pageContext.request.contextPath}/basemgr/kpiSubscribleAction!deleteTdSubScribleDefineData.action',
			 data:pars,
			 dataType :'json',
			 cache : true,
			 success : function(r1){ 
			       $.messager.show({
						title:'指标订阅信息',
						msg:r1.returnMsg,
						showType:'slide'
					});
			 }
          });
		     
		  
     }
     /**
     *保存订阅指标
     *保存值模型： 员工@@订阅方式@@告警@@周期
     *李四@@1;2;3@@1@@cycle==0!!20120812 
     *李四@@1;2;3@@0@@cycle==1!!201208
     */
     function saveKpiSubscrible(){
	      //获取订阅方式
	      var kpiSubscripteIndicators=getKpiSubscripteIndicators();
	      //获取告警
	      var releaseFrequency=getReleaseFrequency();
	      //获取树形中所有checkbox选中的值
	      var node=$('#dqm_kpiSubscrible_treeId').tree('getChecked');
	      if(node.length>0){
	         //清空Array数据
	         kpiList=new Array();
		     for(var idx=0;idx<node.length;idx++){
		          //屏蔽角色选中值
		          var removeRode=node[idx].id.split("@@");
		          if(removeRode[1]!="parent"){
		             var str="";
		             str+="@@"+kpiSubscripteIndicators;
		             str=node[idx].id+str+"@@"+releaseFrequency;
		             kpiList.push(str);
		          }
		      }
	          //替换详细用户订阅方式
		      if(kpiDialog){
		         for(var idx=0;idx<kpiDialogList.length;idx++){
		             var kpiDialogObj=kpiDialogList[idx].split("@@");
		             for(var ifx=0;ifx<kpiList.length;ifx++){
		                 var kpiObj=kpiList[ifx].split("@@");
		                 if(kpiDialogObj[0]==kpiObj[0]){
		                    kpiList.splice(ifx,1);
		                    kpiList.push(kpiDialogList[idx]);
		                 }
		             }
		         }
		     }
	         //验证是否选择订阅方式
	         for(var ifx=0;ifx<kpiList.length;ifx++){
                var kpiObj=kpiList[ifx].split("@@");
                if(""==kpiObj[1]){
                  alert("请选择订阅方式!");
                 return;
                }
		     }
	         if(kpiList.length<=0){
	        	 alert("角色不能被订阅，请选择相应的用户");
	         }else{
	        	//执行订阅操作
	              $.ajax({
					 url : '${pageContext.request.contextPath}/basemgr/kpiSubscribleAction!insertAndUpdateKpiSubscrible.action?kpiSubscribleList='+kpiList,
					 data:serializeObject($('#dqm_kpiSubscrible_kpisubscribe_form')),
					 dataType :'json',
					 cache : true,
					 success : function(r1){ 
					       $.messager.show({
								title:'指标订阅信息',
								msg:r1.returnMsg,
								showType:'slide'
							});
					 }
			     });
	         }
		     
	     }
     }
     //获取订阅方式数据
     function getKpiSubscripteIndicators(){
        var str="";
        $("#dqm_kpiSubscrible_checkbox_indicators").find($("input[type=checkbox]:checked")).each(function(){ //由于复选框一般选中的是多个,所以可以循环输出
             str+=$(this).val()+";";
        });
        return str.substring(0,str.length-1);
     }
     //获取告警数据
     function getReleaseFrequency(){
       var str="";
       var warnSend=null;//告警值
       if($("#dqm_kpiSubscrible_warnSend_radio_Id").attr("checked")!=undefined){
    	   str+="1@@";
       }else{
    	   str+="0@@";
       }
       var PeriodType=$("#dqm_kpiSubscrible_selectPeriodType").val();
       var dataDate=$("#dqm_kpiSubscrible_datetime_day").val();
       str+=PeriodType+"!!"+dataDate;
       return str;
     }
     /********************弹出框javascript*******start*******************/
     /********************弹出框javascript*******start*******************/
     //配置显示用户详细信息数据
     function showDialogData(userId){
    	 
        //清空数据订阅方式历史数据
        document.getElementById("dqm_kpiSubscrible_checkbox_001").checked=false;
        document.getElementById("dqm_kpiSubscrible_checkbox_002").checked=false;
        document.getElementById("dqm_kpiSubscrible_checkbox_003").checked=false;
        document.getElementById("dqm_kpiSubscrible_warnSend_dialog_radio_Id").checked=false;
        $("#dqm_kpiSubscrible_select_dayormonth_dialog").val("3");
        $("#dqm_kpiSubscrible_datetime_day_dialog").val(getDateStr(0));
        
        var pars="userId="+userId+"&resourceId="+$("#dqm_kpiSubscrible_subscribleId").val();
       	$.ajax({
			type : "post",
			async: false,
			url : '${pageContext.request.contextPath}/basemgr/kpiSubscribleAction!getSubscribleDefineByuserId.action',
			data:pars,
			dataType : "json",
			cache : true,
		    success : function(data){
				if(""!=data){
				   //告警时
				   if(data[0].warnSend=="1"){
					   document.getElementById("dqm_kpiSubscrible_warnSend_dialog_radio_Id").checked=true;
				   }else{
					   document.getElementById("dqm_kpiSubscrible_warnSend_dialog_radio_Id").checked=false;
				   }
				   //周期性
				   if(data[0].periodType=="3"){//日粒度
				          $("#dqm_kpiSubscrible_select_dayormonth_dialog").val("3");
				          
				          $("#dqm_kpiSubscrible_datetime_day_dialog").my97({
				 	   	         dateFmt:'yyyyMMdd',
				 	   	         width:120,
				 		   	     startDate:[{
				 		   			 doubleCalendar:false,
				 		   			 isShowWeek:false,
				 		   			 isShowClear:false,
				 		   			 readOnly:true
				 		   	     }]
				 	        });
				          $("#dqm_kpiSubscrible_datetime_day_dialog").val(data[0].startDataDate);
				   }else if(data[0].periodType=="2"){//月粒度
				          $("#dqm_kpiSubscrible_select_dayormonth_dialog").val("2");
				   
				          $("#dqm_kpiSubscrible_datetime_day_dialog").my97({
				 	   	         dateFmt:'yyyyMM',
				 	   	         width:120,
				 		   	     startDate:[{
				 		   			 doubleCalendar:false,
				 		   			 isShowWeek:false,
				 		   			 isShowClear:false,
				 		   			 readOnly:true
				 		   	     }]
				 	        });
				          $("#dqm_kpiSubscrible_datetime_day_dialog").val(data[0].startDataDate);
				   }else{
					     $("#dqm_kpiSubscrible_select_dayormonth_dialog").val("4");
					   
				          $("#dqm_kpiSubscrible_datetime_day_dialog").my97({
				 	   	         dateFmt:'yyyyMMddHH',
				 	   	         width:120,
				 		   	     startDate:[{
				 		   			 doubleCalendar:false,
				 		   			 isShowWeek:false,
				 		   			 isShowClear:false,
				 		   			 readOnly:true
				 		   	     }]
				 	        });
				          $("#dqm_kpiSubscrible_datetime_day_dialog").val(data[0].startDataDate); 
				   }
				   for(var idx=0;idx<data.length;idx++){
				      //短信
				      if(data[idx].subscribeMode=="1"){
				        document.getElementById("dqm_kpiSubscrible_checkbox_001").checked=true;
				      }
				      //邮件
				      if(data[idx].subscribeMode=="2"){
				        document.getElementById("dqm_kpiSubscrible_checkbox_002").checked=true;
				      }
				      //系统公告
				      if(data[idx].subscribeMode=="3"){
				         document.getElementById("dqm_kpiSubscrible_checkbox_003").checked=true;
				      }
				      
				   }
				}
                //弹出详细设计页面
                $("#dqm_kpiSubscrible_dialogId").show();
                $("#dqm_kpiSubscrible_dialogId").window({
                	minimizable:false,
                    maximizable:false,
                    collapsible:false,
                    modal:true  
                });
			}
        });
     
     }
     //保存指标订阅弹出框详细值
     function saveKpiValueDialog(){
       //获取订阅方式
       var kpiSubscripteIndicators=getKpiSubscripteDialogIndicators();
       if(kpiSubscripteIndicators.length>0){
           //获取发布频率
	       var releaseFrequency=getReleaseFrequency_dialog();
           if(releaseFrequency.length>0){
        	   var str="";
	           str+=$("#dqm_kpiSubscrible_txtsubscribeId").val()+"@@"+kpiSubscripteIndicators+"@@"+releaseFrequency;
	           kpiDialogList.push(str);
	           $("#dqm_kpiSubscrible_dialogId").dialog('close');
           }else{
        	   alert("请发布频率!");
           }
        }else{
           alert("请选择订阅方式!");
        }
     }
     
     
     //隐藏指标订阅弹出框
     function hideKpiDialog(){
       $("#dqm_kpiSubscrible_dialogId").dialog('close');
     }
     
     
     //获取弹出框订阅方式数据
     function getKpiSubscripteDialogIndicators(){
        var str="";
        $("#dqm_kpiSubscrible_checkbox_dialog_indicators").find($("input[type=checkbox]:checked")).each(function(){ //由于复选框一般选中的是多个,所以可以循环输出
             str+=$(this).val()+";";
        });
        return str.substring(0,str.length-1);
     }
     
     //获取弹出框发布方式数据
     function getReleaseFrequency_dialog(){
       var str="";
       var warnSend=null;//告警值
       if($("#dqm_kpiSubscrible_warnSend_dialog_radio_Id").attr("checked")!=undefined){
      	   str+="1@@";
       }else{
      	   str+="0@@";
       }
       var PeriodType=$("#dqm_kpiSubscrible_select_dayormonth_dialog").val();
       var dataDate=$("#dqm_kpiSubscrible_datetime_day_dialog").val();
       str+=PeriodType+"!!"+dataDate;
       return str;
     }
     /********************弹出框javascript*******end*******************/
     /********************弹出框javascript*******end*******************/
     
        //周期类型改变:弹出框
	   function ChangePeriodType(){
	 	  var value=$("#dqm_kpiSubscrible_selectPeriodType").val();
	 	   $("#dqm_kpiSubscrible_datetime_day").val("");//清空数据
	 	   if(value==3){//日
	 		   $("#dqm_kpiSubscrible_datetime_day").my97({
	 	   	         dateFmt:'yyyyMMdd',
	 	   	         width:120,
	 		   	     startDate:[{
	 		   			 doubleCalendar:false,
	 		   			 isShowWeek:false,
	 		   			 isShowClear:false,
	 		   			 readOnly:true
	 		   	     }]
	 	        });
	 	        $("#dqm_kpiSubscrible_datetime_day").val(getDateStr(0));
	 	   }else if(value==2){//月
	 		   $("#dqm_kpiSubscrible_datetime_day").my97({
	 	   	         dateFmt:'yyyyMM',
	 		   	     startDate:[{
	 		   			 doubleCalendar:false,
	 		   			 isShowWeek:false,
	 		   			 isShowClear:false,
	 		   			 readOnly:true
	 		   	     }]
	 	        });
	 		    $("#dqm_kpiSubscrible_datetime_day").val(myformatter(0));
	 	   }else{//时
	 		   $("#dqm_kpiSubscrible_datetime_day").my97({
	 	   	         dateFmt:'yyyyMMddHH',
	 		   	     startDate:[{
	 		   			 doubleCalendar:false,
	 		   			 isShowWeek:false,
	 		   			 isShowClear:false,
	 		   			 readOnly:true
	 		   	     }]
	 	        });
	 		   $("#dqm_kpiSubscrible_datetime_day").val(getHourStr());
	 	   }
	    }
     
	    
       //周期类型改变:弹出框
	   function ChangePeriodTypeDialog(){
	 	  var value=$("#dqm_kpiSubscrible_select_dayormonth_dialog").val();
	 	   $("#dqm_kpiSubscrible_datetime_day_dialog").val("");//清空数据
	 	   if(value==3){//日
	 		   $("#dqm_kpiSubscrible_datetime_day_dialog").my97({
	 	   	         dateFmt:'yyyyMMdd',
	 	   	         width:120,
	 		   	     startDate:[{
	 		   			 doubleCalendar:false,
	 		   			 isShowWeek:false,
	 		   			 isShowClear:false,
	 		   			 readOnly:true
	 		   	     }]
	 	        });
	 	        $("#dqm_kpiSubscrible_datetime_day_dialog").val(getDateStr(0));
	 	   }else if(value==2){//月
	 		   $("#dqm_kpiSubscrible_datetime_day_dialog").my97({
	 	   	         dateFmt:'yyyyMM',
	 		   	     startDate:[{
	 		   			 doubleCalendar:false,
	 		   			 isShowWeek:false,
	 		   			 isShowClear:false,
	 		   			 readOnly:true
	 		   	     }]
	 	        });
	 		    $("#dqm_kpiSubscrible_datetime_day_dialog").val(myformatter(0));
	 	   }else{//时
	 		   $("#dqm_kpiSubscrible_datetime_day_dialog").my97({
	 	   	         dateFmt:'yyyyMMddHH',
	 		   	     startDate:[{
	 		   			 doubleCalendar:false,
	 		   			 isShowWeek:false,
	 		   			 isShowClear:false,
	 		   			 readOnly:true
	 		   	     }]
	 	        });
	 		   $("#dqm_kpiSubscrible_datetime_day_dialog").val(getHourStr());
	 	   }
	    }
	 //格式化日期函数:日
	   function getDateStr(AddDayCount) {
		    var dd = new Date();
		    dd.setDate(dd.getDate()+AddDayCount);//获取AddDayCount天后的日期
		    var y = dd.getFullYear();
		    var m = dd.getMonth()+1;//获取当前月份的日期
		    if(m<=9){
		    	m="0"+m;
		    }
		    var d = dd.getDate();
		    if(d<=9){
		    	d="0"+d;
		    }
		    return y+m+d;
	   }
	   //格式化日期函数:月
	   function myformatter(AddMonth){
	       var date=new Date();
	  		var y = date.getFullYear();
	  		var m ="";
	  		if(AddMonth==0){
	  			m = date.getMonth()+1;
	  		}else{
	  			m = date.getMonth();
	  		}
	  		var d = date.getDate();
	  		return y+(m<10?('0'+m):m);
	    }
	   //格式化日期函数:时
	   function getHourStr() {
		    var dd = new Date();
		    dd.setDate(dd.getDate());//获取AddDayCount天后的日期
		    var y = dd.getFullYear();
		    var m = dd.getMonth()+1;//获取当前月份的日期
		    if(m<=9){
		    	m="0"+m;
		    }
		    var h = dd.getHours();//获取当前小时
		    if(h<10){
		       h="0"+h;
		    }
		    var d = dd.getDate();
		    if(d<=9){
		    	d="0"+d;
		    }
		    return y+m+d+h;
	   }
	</script>
     <form id="dqm_kpiSubscrible_kpisubscribe_form">
	   <table align="center" style="width:600px;margin-top:5px;">
	       <tr>
	          <td class="tableTd"><s:property value='#pTdKpiSubscrible.reporttypename' />编码:</td>
	          <td><input type="text" id="dqm_kpiSubscrible_subscribleId" name="resourceId" readonly="readonly" value="<s:property value='#pTdKpiSubscrible.resourceId'/>"></td>
	       </tr>
	        <tr>
	          <td class="tableTd"><s:property value='#pTdKpiSubscrible.reporttypename' />名称：</td>
	          <td ><input type="text" id="" name="subscribleName" readonly="readonly" value="<s:property value='#pTdKpiSubscrible.resourceName' />"></td>
	       </tr>
	        <tr>
	          <td class="tableTd">类型：</td>
	          <td>
	              <input type="text" id="" name="" readonly="readonly" value="<s:property value='#pTdKpiSubscrible.reporttypename' />">
	              <input type="hidden" id="" name="reporttype" value="<s:property value='#pTdKpiSubscrible.reporttype' />">
	          </td>
	       </tr>
	        <tr>
	          <td class="tableTd">订阅人：</td>
	          <td>
	            <table width="98.5%" style="border:#cbcbcb solid 1px;margin-top:2px;border-bottom:none;">
	               <tr>
	                  <td>
	                    <marquee direction="left" scrolldelay="150">
	                        <font style="color:red;font-size:15px;">★★</font>
	                        <font style="color:blue;font-size:12px;">双击用户名称可以进行详细设置</font>
	                        <font style="color:red;font-size:15px;">★★</font>
	                    </marquee>
	                  </td>
	               </tr>
	               <tr>
	                 <td>
	                    <div style="z-index:999; width:99%;margin-top:3px;">
			                 <div style="overflow:hidden;overflow-y:scroll;height:140px;border-top:#cbcbcb solid 1px;">
			                    <ul id="dqm_kpiSubscrible_treeId" class="easyui-tree" ></ul>
			                 </div>
	                   </div>
	                 </td>
	               </tr>
	            </table>
	          </td>
	       </tr>
	       <tr>
	          <td class="tableTd">开始推送时间：</td>
	          <td>
	             <table width="98.5%">
	                    <tr>
	                        <td style="border-top:#cbcbcb solid 1px;width:90px" id="dqm_kpiSubscrible_radioid">
	                           <select id="dqm_kpiSubscrible_selectPeriodType" class="selectkpiClass" onchange="ChangePeriodType()">
	                                <option value="3" selected="selected">日</option>
									<option value="2">月</option>
									<option value="4">时</option>
	                           </select>
	                        </td>
	                        <td style="border-top:#cbcbcb solid 1px;text-align:left;">
	                            <input id="dqm_kpiSubscrible_datetime_day"  type="date"  style="width:120px;margin-top:2px;"/>
	                        </td>
	                     </tr>
	             </table>
	          </td>
	        </tr>
	        <tr>
	          <td class="tableTd">订阅方式：</td>
	          <td>
	             <div id="dqm_kpiSubscrible_checkbox_indicators" style="border:#cbcbcb solid 1px;vertical-align:middle;height:20px;line-height:20px;margin-top:3px;width:98%;">
	                &nbsp;<input type="checkbox" id="" name=""  checked="checked" value="1" >短信&nbsp;&nbsp;
	                <input type="checkbox" id="" name="" value="2" >邮件&nbsp;&nbsp;
	                <input type="checkbox" id="" name="" value="3" >系统公告
	             </div>
	          </td>
	       </tr>
	       <tr>
	          <td class="tableTd">告警：</td>
	          <td>
		          <div id="" style="border:#cbcbcb solid 1px;vertical-align:middle;height:20px;line-height:20px;margin-top:3px;width:98%;">
		              &nbsp;<input type="checkbox" id="dqm_kpiSubscrible_warnSend_radio_Id" name="" checked="checked"/>&nbsp;告警时发送
		          </div>
	          </td>
	       </tr>
	       <tr>
	         <td colspan="2">
	               <input type="button" style="margin-left:130px;margin-top:10px" class="btn_Class" value="订阅"    onclick="saveKpiSubscrible()"/>
	               <input type="button" style="margin-left:160px;margin-top:10px"  class="btn_Class" value="取消订阅" onclick="deleteKpiSubscrible()"/>
	          </td>
	       </tr>
	  </table>
	</form>
	  
	  <!-- 订阅详细设计 弹出框-->
	   <div id="dqm_kpiSubscrible_dialogId"  title="<s:property value='#pTdKpiSubscrible.reporttypename' />订阅详细设置" style="width:400px;height:190px;padding:10px;display: none">
		  <table float="left">
		     <tr>
	           <td style="width:35%;text-align:right;">订阅人:</td>
	           <td style="width:65%">
	             <input type="text"   id="dqm_kpiSubscrible_txtsubscribeName" name="" style="width:98%">
	             <input type="hidden" id="dqm_kpiSubscrible_txtsubscribeId" name=""/>
	           </td>
	         </tr>
		     <tr>
	           <td style="text-align:right;">订阅方式：</td>
	           <td>
	             <div id="dqm_kpiSubscrible_checkbox_dialog_indicators" style="border:#cbcbcb solid 1px;margin-top:3px;width:98%;height:20px;line-height:20px;">
	                <input type="checkbox" id="dqm_kpiSubscrible_checkbox_001" name=""  value="1">短信&nbsp;&nbsp;
	                <input type="checkbox" id="dqm_kpiSubscrible_checkbox_002" name="" value="2">邮件&nbsp;&nbsp;
	                <input type="checkbox" id="dqm_kpiSubscrible_checkbox_003" name="" value="3">系统公告
	             </div>
	           </td>
	        </tr>
	         <tr>
	          <td style="text-align:right;">开始推送时间：</td>
	          <td valign="middle" width="65%">
	             <table width="100%">
	                    <tr>
	                        <td style="text-align:left">
	                           <select id="dqm_kpiSubscrible_select_dayormonth_dialog" style="margin:0px;margin-right:3px;margin-top:2px;" class="selectkpiClass" onchange="ChangePeriodTypeDialog()">
	                                <option value="3" selected="selected">日</option>
									<option value="2">月</option>
									<option value="4">时</option>
	                           </select>
	                        </td>
	                        <td style="text-align:left" nowrap="nowrap">
	                            <input id="dqm_kpiSubscrible_datetime_day_dialog"        type="date"  style="width:120px;margin-top:3px;"/>
	                        </td>
	                     </tr>
	             </table>
	          </td>
	        </tr>
	        <tr>
	          <td style="text-align:right;">告警：</td>
	          <td>
		          <div id="" style="border:#cbcbcb solid 1px;vertical-align:middle;height:20px;line-height:20px;margin-top:3px;width:98%;">
		              <input type="checkbox" id="dqm_kpiSubscrible_warnSend_dialog_radio_Id" name="" checked="checked"/>&nbsp;告警时发送
		          </div>
	          </td>
	       </tr>
	        <tr>
	          <td align="center" colspan="2"><a  href="javascript:void(0)" class="easyui-linkbutton" data-options="iconCls:''"  style="margin-top:10px;color:#FFFFFF" onclick="saveKpiValueDialog()">保存</a>
	        </tr>
		  </table>
	  </div>